package com.silknet.images;

import java.io.InputStream;
import java.io.Serializable;

public class ImageData implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -328105553509283935L;
    private int id;
    private String prefix;
    private byte[] imgData;
    private InputStream imageInputStream;
    private String imageName;
    private String contenttype;

    public String getContenttype() {
        return contenttype;
    }

    public int getId() {
        return id;
    }

    public InputStream getImageInputStream() {
        return imageInputStream;
    }

    public String getImageName() {
        return imageName;
    }

    public byte[] getImgData() {
        return imgData;
    }

    public void setContenttype(String contenttype) {
        this.contenttype = contenttype;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setImageInputStream(InputStream imageInputStream) {
        this.imageInputStream = imageInputStream;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public void setImgData(byte[] imgData) {
        this.imgData = imgData;
    }

    public String getPrefix() {
        if (prefix == null) {
            prefix = "";
        }
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

}
